.class Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity$2;
.super Ljava/lang/Object;
.source "NiceGoodsDetailActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity;->onSosoAppSuccess(Lcom/brixd/niceapp/model/EstimateModel;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity;

.field final synthetic val$estimateModel:Lcom/brixd/niceapp/model/EstimateModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity;Lcom/brixd/niceapp/model/EstimateModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity;

    .prologue
    .line 242
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity$2;->val$estimateModel:Lcom/brixd/niceapp/model/EstimateModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    .prologue
    .line 246
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity$2;->val$estimateModel:Lcom/brixd/niceapp/model/EstimateModel;

    invoke-static {v1}, Lcom/brixd/niceapp/model/EstimateModel;->convertEstimateModleToCommonEntity(Lcom/brixd/niceapp/model/EstimateModel;)Lcom/brixd/niceapp/db/CommonEstimateEntity;

    move-result-object v0

    .line 247
    .local v0, "entity":Lcom/brixd/niceapp/db/CommonEstimateEntity;
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/db/CommonEstimateEntity;->setType(I)V

    .line 248
    invoke-static {v0}, Lcom/brixd/niceapp/service/AppService;->insertOrReplaceCommonEstimate(Lcom/brixd/niceapp/db/CommonEstimateEntity;)V

    .line 250
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceGoodsDetailActivity$2;->val$estimateModel:Lcom/brixd/niceapp/model/EstimateModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/EstimateModel;->getAppId()I

    move-result v1

    sget-object v2, Lcom/brixd/niceapp/model/UserTrackModel$UserTrackModelType;->TYPE_NICE_GOODS:Lcom/brixd/niceapp/model/UserTrackModel$UserTrackModelType;

    invoke-static {v1, v2}, Lcom/brixd/niceapp/service/UserService;->addDownId(ILcom/brixd/niceapp/model/UserTrackModel$UserTrackModelType;)V

    .line 251
    return-void
.end method
